<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!doctype html>
<html lang="en"><head>
    <meta charset="utf-8">
    <title>主页</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
	<%@ include file="../commons/taglibs.jsp"%>

<style type="text/css"> 
#navsite { 
    font-family: Verdana, Helvetica, Arial, sans-serif; 
    font-size: 0.7em; 
    font-weight: bold; 
    width: 12em; 
    border-right: 1px solid #666; 
    padding: 0; 
    margin-bottom: 1em; 
    background-color: #026A87; 
    color: #333; 
} 
#navsite ul { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
} 
#navsite ul li { 
    margin: 0; 
    border-top: 1px solid #003; 
} 
#navsite ul li a { 
    display: block; 
 	 padding: 2px 2px 2px 0.5em; 
    border-left: 10px solid #369; 
    border-right: 1px solid #69c; 
    border-bottom: 1px solid #369; 
    background-color: #036; 
    color: #fff; 
    text-decoration: none; 
    width: 100%; 
} 
html>body #navsite ul li a { 
    width: auto; 
} 
#navsite ul li a:hover { 
    border-left: 10px solid #036; 
    border-right: 1px solid #69c; 
    border-bottom: 1px solid #369; 
    background-color: #69f; 
    color: #fff; 
} 
</style>
<script type="text/javascript">
    function loadUrl(name,url){
    	mainContent.window.openTab(name,url); 
    }
    function addCustom(){
	    addDialogTag("<%=path%>/jsp/OutCurstom/form.jsp",'添加客户','<%=path%>/curstom/createOrUpdate','450','420');
    }
    
     function SetWinHeight(obj){ 
  		setTimeout(function(obj){
  		var ifm= document.getElementById("mainContent");
   			var subWeb = document.frames ? document.frames["mainContent"].document :ifm.contentDocument;
             if(ifm != null && subWeb != null) {
        			 $("#mainContent").css('height',subWeb.body.scrollHeight)
        	   }
  		},1500); 
	} 
		//注销登陆
		function loginOut(){
				 window.location.href="<%=path%>";
		}
		
		//修改密码
		function resetPass(){
			var url="<%=path%>/jsp/password.jsp";
		$('#updatePassword').dialog('refresh', url);
		$('#updatePassword').dialog('open');
	}

	//初始化绑定点击a标签的事件  头部菜单的事件
	$(function() {
		$("#myTag li a").click(function() {
			$("#myTag li a").attr("class", "");
			$(this).attr("class", "this")
		});

	})
</script>


</head>
 
	<body id="cc" class="easyui-layout" data-options="fit:true">
		<input type="hidden" id="panHight" />
	<div data-options="region:'north',border:false"
			style="height: 92px;padding:5px;margin:0; text-align:right; background:#026A87;">
			
		<div  id="logo" style="height:80px;width:100%;background:#026A87;padding:0;margin:0; border:0; " >
		
				<span style="float: left;text-align: center;height: 80px;width: 80%">
					<span style="margin-top: 15px;width: 40%;float: left" ><font style="background:#e1e5e8;font-family: 'Georgia', Tahoma, Sans-Serif;font-size: 40px;line-height: 50px;color: #888;" >
						XX 收银台
					</font>
					</span>
					<span>
						 <ul class="tab" id="myTag">
						   <li><a href="javascript:loadUrl('点单','<%=path %>/order/beginOrder')"><img src="<%=path %>/images/icon_04.png" width="24"><br>点单</a></li>
						   <li><img src="<%=path %>/images/s.png" height="55" width="2"></li>
						   <li><a href="javascript:loadUrl('营业流水','<%=path %>/jsp/OutOrder/list.jsp')" class="this"><img src="<%=path %>/images/icon_01.png" width="24"><br>营业流水</a></li>
						   <li><img src="<%=path %>/images/s.png" height="55" width="2"></li>
						   <li><a href="javascript:loadUrl('菜单管理','<%=path %>/jsp/OutMenu/list.jsp')"><img src="<%=path %>/images/icon_02.png" width="24"><br>菜单管理</a></li>
						   <li><img src="<%=path %>/images/s.png" height="55" width="2"></li>
						 	  <li><a href="javascript:addCustom()"><img src="<%=path %>/images/icon_07.png" width="24"><br>添加客户</a></li>
<%-- 						   <li><img src="<%=path %>/images/s.png" height="55" width="2"></li> --%>
<%-- 						   <li><a href="javascript:loadPlatform('lag')"><img src="<%=path %>/images/icon_09.png" width="24"><br>知识库</a></li> --%>
<%-- 						   <li><img src="<%=path %>/images/s.png" height="55" width="2"></li> --%>
<%-- 						   <li><a href="javascript:loadPlatform('dev')"><img src="<%=path %>/images/icon_03.png" width="24"><br>设备维修</a></li> --%>
<%-- 						   <li><img src="<%=path %>/images/s.png" height="55" width="2"></li> --%>
<%-- 		<!--				   <li><a href="javascript:loadPlatform('test')"><img src="<%=path %>/images/icon_05.png" width="24"><br>培训考核</a></li>--> --%>
<%-- 		<!--				   <li><img src="<%=path %>/images/s.png" height="55" width="2"></li>--> --%>
<%-- 						   <li><a href="javascript:loadPlatform('check')"><img src="<%=path %>/images/icon_06.png" width="24"><br>质量稽查</a></li> --%>
<%-- 						   <li><img src="<%=path %>/images/s.png" height="55" width="2"></li> --%>
<%-- 						     <li><a href="javascript:loadUrl('营业分析','<%=path %>/jsp/OutOrder/total_list.jsp')"><img src="<%=path %>/images/icon_10.png" width="24"><br>营业分析</a></li> --%>
<%-- <%-- 						   <li><img src="<%=path %>/images/s.png" height="55" width="2"></li> --%> --%>
<%-- 						   <li><a href="javascript:loadPlatform('bas')"><img src="<%=path %>/images/icon_08.png" width="24"><br>系统设置</a></li> --%>
						</ul>
					
					</span>
					
				</span>	
				<span style="width: 300px;margin: 0;">
					<div style="float:right; padding-top:10px;">
					<ul>
					<li>		    <a href="#" class="easyui-linkbutton t1" plain="true" icon="icon_group_blue_new" onClick="resetPass()"><font color="#FFFFFF">修改密码</font></a>
					</li>
					<li>		    <a href="#" onClick="if(!confirm('你确定退出吗？')){return false;}else{loginOut()}" class="easyui-linkbutton t1" plain="true" icon="icon-undo" ><font color="#FFFFFF">退出系统</font></a>
					
					</li>
					</ul>
				    <br/> 
				</div>
			</span>
		</div>
		
			
		
    	
    </div>	
	
	
			
		<div id="content" 	data-options="region:'center',title:'欢迎您!${sessionScope.userName}'"
			style="padding: 5px;">
			<center>
				<iframe id="mainContent" name="mainContent" frameborder="0"
					style="background: #fff; text-align: center;" onload="Javascript:SetWinHeight(this)" 
					src="<%=path %>/jsp/OutOrder/index.jsp"
       						 frameborder=no width="100%" scrolling="yes" 
					>
				</iframe>
			</center>
		</div>	
		
		     <div  id="updatePassword"  class="easyui-dialog" data-options="title: '修改密码',   
					    width: 330,
					    height: 180,  
					    top:160, 
					    closed: true,   
					    cache: false,   
					    modal: true  "></div>	
					    
			<script type="text/javascript">
			$('.easyui-linkbutton').on('click', function(){    
				$('.easyui-linkbutton').linkbutton({selected:false}); 
			    $(this).linkbutton({selected:true});  
			});   
						
		
   		setTimeout(function(obj){	
			var c = $('#cc');
			var p = c.layout('panel','center');	// get the center panel
			var oldHeight = p.panel('panel').outerHeight();
			$("#mainContent").css('height',oldHeight);
			
			$("#panHight").val(oldHeight-38);			
			},2000)			
			</script>		    
		
</body>

</html>

